package br.edu.unifei.cct810.trabalho01.gui.componentes;

import br.edu.unifei.cct810.trabalho01.patterns.Command;
import br.edu.unifei.cct810.trabalho01.patterns.Mediator;

public class JButtonGerarAFDReconhecedor extends javax.swing.JButton implements Command{
	
	private Mediator med = null;
	
	public JButtonGerarAFDReconhecedor(String title, Mediator m){
		this.setText(title);
		this.med = m;
	}

	@Override
	public void execute() {
		med.gerarAFDReconhecedor();
	}

	@Override
	public void validar() {
		// TODO Auto-generated method stub
	}
}
